<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<table>
<tr><td>id</td><td>Name</td><td>Description</td>
<td>Limit</td><td>startdate</td><td>enddate</td>
<td>lastjoined</td><td>lastvoted</td><td>lastviewed</td>
<td>active</td><td>rank</td><td>votelimit</td>
<td>edit</td><td>delete</td><td>activate/finish</td></tr>
<c:forEach items="${model.competitions }" var="c">
<tr><td>${c.id }</td>
<td>${c.name }</td>
<td>${c.description }</td>
<td>${c.limit }</td>
<td>${c.startDate }</td>
<td>${c.endDate }</td>
<td>${c.lastJoined }</td>
<td>${c.lastVoted }</td>
<td>${c.lastViewed }</td>
<td>${c.active }</td>
<td>${c.rank }</td>
<td>${c.votelimit }</td>
<td><a href="editcompetition.htm?id=${c.id }">edit</a></td>
<td><a href="delcompetition.htm?id=${c.id }">delete</a></td>
<c:if test="${!c.active }">
<td><a href="activecompetition.htm?id=${c.id }">activate</a></td></c:if>
<c:if test="${c.active }">
<td><a href="finishcompetition.htm?id=${c.id }">finish</a></c:if>
</tr>
</c:forEach>
</table>
<a href="addcompetition.htm">Add New Competition</a>